package com.topfinance.cnaps2.ebo;

// Generated 2009-6-19 13:56:29 by Hibernate Tools 3.2.2.GA

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * SysDepartment generated by hbm2java
 */
@Entity
@Table(name = "T_SYS_OPER")
public class SysOperEbo implements java.io.Serializable {

	//OID	主键	integer	
	private Integer ID;

	//UserID	名称	integer	
	private SysUserEbo user;

	//FuncID	备注	integer	
	private SysFuncsEbo func;

	//enabled	允许	char(1)
	private String enabled;


	public SysOperEbo() {
	}

	@Id
	@Column(name = "ID", unique = true, nullable = false)
	@SequenceGenerator(name = "SYS_OPER_GEN", sequenceName = "S_SYS_OPER")
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "SYS_OPER_GEN")
    public Integer getID() {
        return this.ID;
    }
    public void setID(Integer ID) {
        this.ID = ID;
    }

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "funcid")
    public SysFuncsEbo getFunc() {
        return this.func;
    }
    public void setFunc(SysFuncsEbo func) {
        this.func = func;
    }

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "userid")
    public SysUserEbo getUser() {
        return this.user;
    }
    public void setUser(SysUserEbo user) {
        this.user = user;
    }
    
	@Column(name = "enabled")
	public String getEnabled() {
		if (enabled == null)
			return "";
		return enabled;
	}
	public void setEnabled(String enabled) {
		this.enabled = enabled;
	}

}
